<?php
/* ========================================
 *  StartPage.php
 * --------------------
 * Created on 02.04.2010
 * ========================================
 * $Revision: $
 * $Author: Dmitry Boycov
 * $HeadURL: $ 
 * $Id: $
 * ========================================
 * Changes ["date: description (who)"]:
 *
 * 02.04.2010: Original version (WHo)
 * 16:02:36: Time 
 */
require_once("app/Page.php");

class StartPage extends Page{

	/**
	 * @override
	 * div - wraper
	 * formed header
	 * @return string
	 */
	public function  createHeader(){
		$settings = App::settings();
		return '
			<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
			<html>
			<head>
				<meta http-equiv="content-type" content="text/html; charset='.$settings['clientCharset'].'">
				<link rel="shortcut icon" href="" type="image/ico"/>
				<title>'.$this->title.'</title>
				<script type="text/javascript" src="include/js/helper.js"></script>
				<!-- style -->
				<link rel="stylesheet" type="text/css" href="include/style/wrap-ui-jquery.css"/>
				<link rel="stylesheet" type="text/css" href="include/style/style.css"/>
				<!--[if IE]>
				<link rel="stylesheet" type="text/css" href="include/style/wrap-ui-jquery-ie.css"/>
				<![endif]-->
			</head>
			<body>
				<div id="wraper">
					<div style="margin:0 auto;width:900px;">
					<!-- end header-->';
	}

	/**
	 * @override
	 * @return string
	 */
	public function createFooter(){
		return '<!-- footer -->
			</div>
		</div></body></html>';
	}

	/**
	 * @override
	 * @return void
	 */
	public function show(){
		$html = $this->createHeader();
		$html.= $this->content;
		$html.= $this->createFooter();
		echo $html;
	}
}
?>